class Node {
  constructor(val, next = null) {
    this.val = val;
    this.next = next;
  }
}


function ListNode() {
  let head = new Node(1);
  head.next = new Node(2);
  head.next.next = new Node(3);
  head.next.next = new Node(4);

  return head;
}
